<?
global $skinsdir;
global $_skin;

$title = $_skin["title"]; if (!$title) $title = "Sign In";

ob_start();
include dirname(__FILE__)."/default.css";
$css = ob_get_contents();
ob_end_clean();

ob_start();
include "$skinsdir/main/index.php";
$content = ob_get_contents();
ob_end_clean();
$content = str_replace("%%","
<style type='text/css'>
$css
</style>
<table align=center><tr><td>
<h1>$title</h1>
%%</table>
",$content);

$content = str_replace("src=\"","src=\"../main/",$content);

echo $content;